#!/usr/bin/env python
# -*- coding: utf-8 -*-
# @File   : c_error.py
# @Email  : xuexia_xu@feidee.com
# @Time   : 2024/4/1 11:07
# @Desc   :

import logging

def foo(s):
    return 10 / int(s)


def bar(s):
    return foo(s) * 2


def main():
    # bar('0')
    try:
        bar('0')
    except Exception as e:
        # print('Error:', e)
        logging.exception(e)
    # finally:
    #     print('finally...')


main()
